/* 引入基础设施 */
import routerGenerator from "@/common/router/routerGenerator";

/* 引入组件 */
import login from "@/pages/main/login/login.vue";
import index from "@/pages/main/index/index.vue";
import home from "@/pages/main/home/home.vue";
import page_1 from "@/pages/main/page_1/page_1";
import page_2 from "@/pages/main/page_2/page_2";

// 登录路由
let loginRouter = routerGenerator.root("登录", 'Login', '/', login, []);

// 主页路由
let indexRouter = routerGenerator.root("主页", 'Index', '/index', index, [
    // 首页
    routerGenerator.leaf("首页", 'Home', '/home', home)
]);

// 样例路由
let demoRouter = routerGenerator.menuRoot("样例1", 'Demo', '/index', index, [
    // 样例页面1
    routerGenerator.menuLeaf("样例页面1", 'Page1', '/page1', page_1),
    // 样例页面2
    routerGenerator.menuLeaf("样例页面2", 'Page2', '/page2', page_2)
]);


export default [
    // 登录路由
    loginRouter,
    // 主页路由
    indexRouter,
    // 样例路由
    demoRouter
]